package com.smartEdu.dao.impl;

import java.util.HashMap;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Repository;

import com.smartEdu.dao.RongCloudDao;
import com.smartEdu.dao.UserParamDao;
import com.smartEdu.mapper.RongCloudMapper;
import com.smartEdu.mapper.UserStudentParamMapper;
import com.smartEdu.model.CreateRongGroupModel;
import com.smartEdu.model.FindFriendModel;
import com.smartEdu.model.FriendTabModel;
import com.smartEdu.model.JoinRongGroupModel;
import com.smartEdu.model.RongCloudModel;
import com.smartEdu.model.UserStudentParamModel;

@Repository("rongCloudDaoImpl")
public class RongCloudDaoImpl implements RongCloudDao{
	
	@Autowired(required=false)
	@Qualifier("rongCloudMapper")
	private RongCloudMapper mapper;

	@Override
	public void AddOrUpdate(RongCloudModel model) {
		// TODO Auto-generated method stub
		mapper.AddOrUpdate(model);
	}

	@Override
	public void CreateRongGroup(CreateRongGroupModel model) {
		// TODO Auto-generated method stub
		mapper.CreateGroup(model);
	}

	@Override
	public List<CreateRongGroupModel> getGroupById(String id) {
		// TODO Auto-generated method stub
		return mapper.getGroupById(id);
	}

	@Override
	public List<CreateRongGroupModel> getGroupInfo() {
		// TODO Auto-generated method stub
		return mapper.getGroupInfo();
	}

	@Override
	public void AddFrinendTab(FriendTabModel model) {
		// TODO Auto-generated method stub
		mapper.addFriendTab(model);
	}

	@Override
	public List<FriendTabModel> queryFriend(HashMap<String,String> map) {
		// TODO Auto-generated method stub
		return mapper.queryfriend(map);
	}

	@Override
	public List<FindFriendModel> allMyFriend(String id) {
		// TODO Auto-generated method stub
		return mapper.allMyFriend(id);
	}

	@Override
	public List<CreateRongGroupModel> getGroupByUserId(String userid) {
		// TODO Auto-generated method stub
		return mapper.getGroupByUserId(userid);
	}

	@Override
	public void addGroup(List<JoinRongGroupModel> list) {
		// TODO Auto-generated method stub
		mapper.insertGroup(list);
	}

	@Override
	public void deleteFriendById(FriendTabModel model) {
		// TODO Auto-generated method stub
		mapper.deleteFriendById(model);
		
	}
}
